package com.cxb.springboot.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.recipes.cache.NodeCacheListener;

/**
 * @Classname ZookeeperWatcherListener
 * @Date 2023/3/28 23:11
 * @Created by Administrator
 * @Description NodeCache：监听指定的节点。
 */
@Slf4j
public class MyNodeCacheListener implements NodeCacheListener {

    @Override
    public void nodeChanged() {
        log.info("监听到指定节点的变化!");
    }
}